package com.librarydemo.demo.service.imp;

import com.librarydemo.demo.dao.BookDao;
import com.librarydemo.demo.entity.Book;
import com.librarydemo.demo.entity.Catalog;
import com.librarydemo.demo.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookServiceImp implements BookService {
    @Autowired
    BookDao bookDao;

    @Override
    public List<Book> getAllBooks() {
        return bookDao.getAllBooks();
    }

    @Override
    public List<Catalog> getCatalog() {
        return bookDao.getCatalog();
    }
}
